<template>
  <div class="topic-select-container">
    <img :src="info.item_pic_url" />
    <div class="flex-title">
      <span class="title">{{ info.title }}</span>
      <span class="price">{{ info.price_info }}元起</span>
    </div>

    <p class="derc">{{ info.subtitle }}</p>
  </div>
</template>

<script>
export default {
  props: ["info"],
};
</script>

<style scoped lang='scss'>
.topic-select-container {
  width: 556px;
  height: 309px;
  background-color: red;
  img {
    height: 100%;
    width: 100%;
  }
  .flex-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    .title {
      margin: 21px 0 12px 0;
      font-size: 30px;
      color: #333333;
      letter-spacing: 0;
      font-weight: 500;
    }
    .price {
      font-size: 24px;
      color: #9e4242;
      letter-spacing: 0;
      font-weight: 400;

    }
  }

  .derc {
    font-size: 24px;
    color: #999999;
    letter-spacing: 0;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
</style>